Skip to content

fix(@schematics/angular): add trusted-proxy-headers migration#33065

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:migration-trusted
Apr 29, 2026
Merged

fix(@schematics/angular): add trusted-proxy-headers migration#33065
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:migration-trusted

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

Adds a new schematic migration to automatically add trustProxyHeaders configuration to server.ts files in workspaces where either AngularNodeAppEngine or AngularAppEngine are used.

@alan-agius4 alan-agius4 requested a review from dgp1130 April 28, 2026 08:31
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Apr 28, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new schematic migration, trusted-proxy-headers, designed to automatically add the trustProxyHeaders configuration to AngularAppEngine or AngularNodeAppEngine instantiations within server.ts files. The migration also inserts a security-sensitive TODO comment to guide developers. Review feedback identifies a potential syntax error when the migration encounters new expressions without parentheses and suggests improving the detection of existing properties by accounting for string literal keys in object literals.

@alan-agius4 alan-agius4 force-pushed the migration-trusted branch 3 times, most recently from a55328e to 397f73d Compare April 28, 2026 08:43
Adds a new schematic migration to automatically add trustProxyHeaders configuration to server.ts files in workspaces where either AngularNodeAppEngine or AngularAppEngine are used.
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 29, 2026
@alan-agius4 alan-agius4 merged commit dc1238e into angular:main Apr 29, 2026
35 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the migration-trusted branch April 29, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants